home *** CD-ROM | disk | FTP | other *** search
/ Language/OS - Multiplatform Resource Library / LANGUAGE OS.iso / gnu / ms-0_06.lha / mslaved-0.06 / INSTALL < prev    next >
Text File  |  1991-11-24  |  3KB  |  76 lines

  1. INSTALLING THE COMPUTATION SERVERS
  2.  
  3. Edit the Makefile as necessary (there is no Imakefile for the server
  4. because it isn't an X11 program).  Read the instruction in the Makefile
  5. before deciding whether to change the line "CC=gcc" to "CC=cc" or not;
  6. it may or may not cause a large drop in performance.
  7.  
  8. Using GCC together with an assembler other than GAS may cause problems
  9. on some machines; in this case you may need to edit the few lines of
  10. inline assembly in ms_real.c.
  11.  
  12. Note that very old versions of GCC (< 1.36) probably won't work; all
  13. versions I have tried up to and including 1.35 either dump core or
  14. generate incorrect code when compiling mslaved.c.
  15.  
  16. Run make.
  17.  
  18. You have two options when it comes to starting the computation
  19. servers.  The recommended way is to have the "inetd" of each machine
  20. start a server on demand.  To do this, you need access to the root
  21. account.  The following steps should be performed on each server
  22. machine.
  23.  
  24. 1. Create the directory /usr/local/etc, if you don't have one already.
  25.  
  26. 2. Copy mslaved and mslavedc to /usr/local/etc.
  27.  
  28. 3. Add a line like the following to /etc/services (if you are running
  29.    Yellow Pages, you may need to do this on the central YP server):
  30.  
  31.    mandelspawn    9359/udp    mandelbrot    # network mandelbrot
  32.  
  33. 4. Add a line like the following to /etc/inetd.conf:
  34.  
  35.    mandelspawn dgram udp    wait    nobody  /usr/local/etc/mslaved mslaved
  36.  
  37.    (The above instructions apply to 4.3BSD and should also work as such
  38.    with SunOS 4.0 and up.  Some older systems, such as SunOS versions
  39.    older than 4.0, may need different treatment in step 3 and/or 4.
  40.    In particular, they may use a file /etc/servers instead of
  41.    /etc/inetd.conf, with a slightly different syntax.)
  42.  
  43.    (When installing under IRIX, inetd may get confused if the 
  44.    username "nobody" (UID -2) is used in /etc/inetd.conf, causing
  45.    it to log numerous error messages saying "can't set gid 65534".
  46.    If you have similar problems, use another username instead).
  47.  
  48.    (Ultrix seems to have no username field at all in inetd.conf.
  49.    If this is the case for your system, then just leave out the "nobody").
  50.  
  51. 5. Send a hangup signal to inetd using "kill -1" to make it read the
  52.    changed /etc/inetd.conf.
  53.  
  54. 6. Install the man pages in the appropriate places
  55.  
  56. If you don't have superuser privileges and cannot persuade someone who
  57. does to perform the above procedure, you can start your own
  58. computation servers manually before each MandelSpawn session.  The
  59. "enslave" shell script does this semi-automatically using information
  60. from your ".enslave", ".rhosts", and ".rhostile" files.  You don't
  61. need to kill the servers explicitly after the session, because they
  62. time out and die when they have been idle for 15 minutes.  For more
  63. info, se the enslave(1) man page.
  64.  
  65. CAVEATS
  66.  
  67. If "rsh" means "restricted shell" rather than "remote shell" when
  68. using the default path on your system, you need to edit the "RSH="
  69. line near the beginning of the "enslave" script.  Silicon Graphics
  70. IRIX users may also need to put "#undef TIOCNOTTY" before the "#ifdef
  71. TIOCNOTTY" line in mslavedc.c.
  72.  
  73.  
  74. See ../xms-0.06/INSTALL for information about installing the X11-based
  75. client.
  76.